:root {
    --background-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    width: 100vw;
    height: 100vh;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    width: 300px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li {
    position: relative;
    list-style: none;
}

.iconfont {
    font-size: 4em;
    color: #51708f;
}

li::before {
    position: absolute;
    top: 0;
    height: 0;
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 4em;
    /* background-color: var(--background-color); */
    border-bottom: 4px solid;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

li:nth-child(1)::before {
    color: #fa8072;
    content: "\e63e";
}

li:nth-child(2)::before {
    color: #fa72e3;
    content: "\e629";
}

li:nth-child(3)::before {
    color: #44d664;
    content: "\e615";
}

li:hover::before {
    height: 100%;
}